package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_UserPointRunning", catalog="Id")
public class TcwUserPointRunning extends BaseEntity<TcwUserPointRunning> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="UserName", nameJava="userName", typeDataBase="varchar")
	private String userName;
	@YsField(nameDataBase="Item", nameJava="item", typeDataBase="varchar")
	private String item;
	@YsField(nameDataBase="ItemSub", nameJava="itemSub", typeDataBase="varchar")
	private String itemSub;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="int")
	private Integer type;
	@YsField(nameDataBase="RelativeId", nameJava="relativeId", typeDataBase="bigint")
	private Long relativeId;
	@YsField(nameDataBase="PointChange", nameJava="pointChange", typeDataBase="decimal")
	private BigDecimal pointChange;
	@YsField(nameDataBase="PointLeft", nameJava="pointLeft", typeDataBase="decimal")
	private BigDecimal pointLeft;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwUserPointRunning setId(Long id) {
		this.id = id;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public TcwUserPointRunning setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public String getUserName() {
		return userName;
	}
	public TcwUserPointRunning setUserName(String userName) {
		this.userName = userName;
		return this;
	}
	public String getItem() {
		return item;
	}
	public TcwUserPointRunning setItem(String item) {
		this.item = item;
		return this;
	}
	public String getItemSub() {
		return itemSub;
	}
	public TcwUserPointRunning setItemSub(String itemSub) {
		this.itemSub = itemSub;
		return this;
	}
	public Integer getType() {
		return type;
	}
	public TcwUserPointRunning setType(Integer type) {
		this.type = type;
		return this;
	}
	public Long getRelativeId() {
		return relativeId;
	}
	public TcwUserPointRunning setRelativeId(Long relativeId) {
		this.relativeId = relativeId;
		return this;
	}
	public BigDecimal getPointChange() {
		return pointChange;
	}
	public TcwUserPointRunning setPointChange(BigDecimal pointChange) {
		this.pointChange = pointChange;
		return this;
	}
	public BigDecimal getPointLeft() {
		return pointLeft;
	}
	public TcwUserPointRunning setPointLeft(BigDecimal pointLeft) {
		this.pointLeft = pointLeft;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TcwUserPointRunning setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwUserPointRunning setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwUserPointRunning setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwUserPointRunning setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwUserPointRunning tcwUserPointRunning(
		String userId,
		String userName,
		String item,
		String itemSub,
		Integer type,
		Long relativeId,
		BigDecimal pointChange,
		BigDecimal pointLeft,
		String remark,
		Integer status
			) {
		TcwUserPointRunning entity = new TcwUserPointRunning();
		entity.setUserId(userId);
		entity.setUserName(userName);
		entity.setItem(item);
		entity.setItemSub(itemSub);
		entity.setType(type);
		entity.setRelativeId(relativeId);
		entity.setPointChange(pointChange);
		entity.setPointLeft(pointLeft);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}